package stu.kurs.services;

import java.util.List;

import stu.kurs.services.IGenericService;
import stu.kurs.domain.User;
import stu.kurs.exceptions.ServiceException;
import javax.ejb.Remote;

@Remote
public interface IUserService extends IGenericService<User>{

	public User findByEmail(String email) throws ServiceException;
	
	public String getMD5(String str);
	
	public boolean changePassword(Integer id, String oldPass, String newPass) throws ServiceException;
	
	public void changeLevel(Integer id, Integer level) throws ServiceException;
    
	public List<User> getAllUser()	throws ServiceException;
	
	public List<User> getAllByLevel(Integer level) throws ServiceException;
}
